<?php
use app\components\Lcms;
use app\components\SadminController;
?><div class="widget-box">
    <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
        <h5><?php echo $title ?></h5>
    </div>
    <div class="widget-content    widgettishineirong">
        <p class="admin_tishi">
            <?php if ($type == SadminController::msg_ok) { ?>
            <img src="<?= Lcms::getWeb() ?>public/artdialog/skins/icons/succeed.png"/>
            <?php } elseif ($type == SadminController::msg_error) { ?>
                <img src="<?= Lcms::getWeb() ?>public/artdialog/skins/icons/error.png"/>
            <?php } ?>
            <span class="con_s"><?php echo $text ?></span></p>
        <input type="hidden" id="outtime" value="<?php echo $outtime; ?>"/>
        <a class="zhuantiao" id="zhuantiao" src_href="<?php echo $url ?>" onclick="zhuantiao()">正在自动转跳,如果没有转跳,请点击此处</a>
    </div>
</div>
<script>

    function zhuantiao() {
        var url = $('#zhuantiao').attr('src_href');
        if(url!==''){
            location.href = url;
        }else{
            history.go(-1);
        }

        //
    }

    $(document).ready(function () {
        setTimeout(function () {

            zhuantiao();



        }, $('#outtime').val());
    });
</script>



